﻿#region

using System.Reflection;
using Mapster;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.DependencyInjection;
using Vin.Extension.Framework.Login.Attributes;
using Vin.Tool.Core.AssemblyCategory;

#endregion

namespace Vin.Extension.Framework.Login;

public class ExtensionEntry : IVinExtension
{
    public static List<VinLoginServiceAttribute> LoginWays { get; private set; } = new();

    public ExtensionEntry()
    {
        LoginWays = AssemblyTool.GetTypesByAttribute<VinLoginServiceAttribute>()
            .Select(m => m.GetCustomAttribute<VinLoginServiceAttribute>()!).ToList();
    }

    public void AddVinExtension(WebApplicationBuilder builder)
    {
    }

    public void AddVinExtension(IServiceCollection services)
    {
    }

    public void UseVinExtension(WebApplication app)
    {
    }
}